<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: event   (YUI Library)</title>
	
	<link rel="shortcut icon" href="assets/yui_icon.ico" type="image/x-icon" />
	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
	<link rel="stylesheet" type="text/css" href="assets/api.css" />

    <script type="text/javascript" src="assets/api-js"></script>
    <script type="text/javascript" src="assets/ac-js"></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1>
        	<a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a>
        	<img src="assets/yui_icon.png" alt="YUI文档中文化" />
        </h1>
        <h3>Event Utility&nbsp; <span class="subtitle">2.7.0b</span></h3>
        <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
            &gt; <a href="./module_event.html" title="event">event</a>
                
                
        <form onsubmit="return false">
            <div id="propertysearch">
                搜索: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
                </fieldset>
            </form>

                   
                    <h3>模块：event
                    


                    </h3>
                    <div class="description summary">
                        Event Utility 提供了一系列用来映射 DOM 事件和创建事件系统的工具
                    </div>



                <div class="yui-gc">
                    <div class="yui-u first">

                            <p>本模块包含以下类：</p>
                            <script>
                            //var YUI_CLASS_LIST = [{"extends": {"superclass": {}, "events": {}, "configs": {}, "properties": {}, "methods": {}}, "description": "CustomEvent \u7c7b\u4f7f\u4f60\u53ef\u4ee5\u4e3a\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u5b9a\u4e49\u4e8b\u4ef6\uff0c\u8fd9\u4e9b\u4e8b\u4ef6\u53ef\u4ee5\u88ab\u4e00\u4e2a\u591a\u4e2a\u72ec\u7acb\u7684\u7ec4\u4ef6\u8ba2\u9605\u3002", "guessedname": "CustomEvent", "name": "YAHOO.util.CustomEvent"}, {"extends": {"superclass": {}, "events": {}, "configs": {}, "properties": {}, "methods": {}}, "description": "Event \u5de5\u5177\u63d0\u4f9b\u4e86\u6dfb\u52a0\u3001\u5220\u9664\u4e8b\u4ef6\u76d1\u542c\u51fd\u6570\u4ee5\u53ca\u6e05\u9664\u4e8b\u4ef6\u76d1\u542c\u51fd\u6570\u7684\u65b9\u6cd5\u3002\n\u5b83\u540c\u6837\u5c1d\u8bd5\u5728 unload \u4e8b\u4ef6\u4e2d\u5220\u9664\u6240\u6709\u7531\u5b83\u6ce8\u518c\u7684\u4e8b\u4ef6\u76d1\u542c\u51fd\u6570\u3002", "guessedname": "Event", "name": "YAHOO.util.Event"}, {"extends": {"superclass": {}, "events": {}, "configs": {}, "properties": {}, "methods": {}}, "description": "EventProvider \u88ab\u8bbe\u8ba1\u7528\u6765\u901a\u8fc7 YAHOO.augment \u5c06\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u5bf9\u8c61\u5305\u88c5\u6210\u4e3a\n\u4e00\u4e2a\u5141\u8bb8\u4f7f\u7528\u540d\u79f0\u6765\u8ba2\u9605\u548c\u89e6\u53d1\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u7684\u63a5\u53e3\u3002\u8fd9\u4f7f\u5f97\u8ba2\u9605\u4e00\u4e2a\u5c1a\u672a\u88ab\n\u521b\u5efa\u6216\u4e0d\u4f1a\u88ab\u521b\u5efa\u7684\u4e8b\u4ef6\u6210\u4e3a\u53ef\u80fd\u3002", "guessedname": "EventProvider", "name": "YAHOO.util.EventProvider"}, {"extends": {"superclass": {}, "events": {}, "configs": {}, "properties": {}, "methods": {}}, "description": "KeyListener \u5de5\u5177\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u63a5\u53e3\u6765\u76d1\u542c DOM \u5143\u7d20\u7684 keydown/keyup \u4e8b\u4ef6\u3002", "guessedname": "KeyListener", "name": "YAHOO.util.KeyListener"}, {"extends": {"superclass": {}, "events": {}, "configs": {}, "properties": {}, "methods": {}}, "description": "\u5b58\u50a8\u5728\u4e8b\u4ef6\u89e6\u53d1\u65f6\u8981\u4f7f\u7528\u7684\u8ba2\u9605\u8005\u4fe1\u606f\u3002", "guessedname": "Subscriber", "name": "YAHOO.util.Subscriber"}];
                            </script>
                            <div id="splash_classList">
                                <ul>
                                    <li><a href="YAHOO.util.CustomEvent.html" title="YAHOO.util.CustomEvent" id="class_0">CustomEvent</a></li>
                                    <li><a href="YAHOO.util.Event.html" title="YAHOO.util.Event" id="class_1">Event</a></li>
                                    <li><a href="YAHOO.util.EventProvider.html" title="YAHOO.util.EventProvider" id="class_2">EventProvider</a></li>
                                    <li><a href="YAHOO.util.KeyListener.html" title="YAHOO.util.KeyListener" id="class_3">KeyListener</a></li>
                                    <li><a href="YAHOO.util.Subscriber.html" title="YAHOO.util.Subscriber" id="class_4">Subscriber</a></li>
                                </ul>
                            </div>
                    </div>
                    <div class="yui-u">

                        </div>
                </div>

			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>模块</h4>
                        <ul class="content">
                                <li class=""><a href="module_animation.html" title="animation">animation</a></li>
                                <li class=""><a href="module_autocomplete.html" title="autocomplete">autocomplete</a></li>
                                <li class=""><a href="module_button.html" title="button">button</a></li>
                                <li class=""><a href="module_calendar.html" title="calendar">calendar</a></li>
                                <li class=""><a href="module_carousel.html" title="carousel">carousel</a></li>
                                <li class=""><a href="module_charts.html" title="charts">charts</a></li>
                                <li class=""><a href="module_colorpicker.html" title="colorpicker">colorpicker</a></li>
                                <li class=""><a href="module_connection.html" title="connection">connection</a></li>
                                <li class=""><a href="module_container.html" title="container">container</a></li>
                                <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
                                <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
                                <li class=""><a href="module_datatable.html" title="datatable">datatable</a></li>
                                <li class=""><a href="module_datemath.html" title="datemath">datemath</a></li>
                                <li class=""><a href="module_dom.html" title="dom">dom</a></li>
                                <li class=""><a href="module_dragdrop.html" title="dragdrop">dragdrop</a></li>
                                <li class=""><a href="module_editor.html" title="editor">editor</a></li>
                                <li class=""><a href="module_element.html" title="element">element</a></li>
                                <li class="selected"><a href="module_event.html" title="event">event</a></li>
                                <li class=""><a href="module_get.html" title="get">get</a></li>
                                <li class=""><a href="module_history.html" title="history">history</a></li>
                                <li class=""><a href="module_imagecropper.html" title="imagecropper">imagecropper</a></li>
                                <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
                                <li class=""><a href="module_json.html" title="json">json</a></li>
                                <li class=""><a href="module_layout.html" title="layout">layout</a></li>
                                <li class=""><a href="module_logger.html" title="logger">logger</a></li>
                                <li class=""><a href="module_menu.html" title="menu">menu</a></li>
                                <li class=""><a href="module_paginator.html" title="paginator">paginator</a></li>
                                <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
                                <li class=""><a href="module_profilerviewer.html" title="profilerviewer">profilerviewer</a></li>
                                <li class=""><a href="module_resize.html" title="resize">resize</a></li>
                                <li class=""><a href="module_selector.html" title="selector">selector</a></li>
                                <li class=""><a href="module_slider.html" title="slider">slider</a></li>
                                <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
                                <li class=""><a href="module_tabview.html" title="tabview">tabview</a></li>
                                <li class=""><a href="module_treeview.html" title="treeview">treeview</a></li>
                                <li class=""><a href="module_uploader.html" title="uploader">uploader</a></li>
                                <li class=""><a href="module_yahoo.html" title="yahoo">yahoo</a></li>
                                <li class=""><a href="module_yuiloader.html" title="yuiloader">yuiloader</a></li>
                                <li class=""><a href="module_yuitest.html" title="yuitest">yuitest</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>类</h4>
                        <ul class="content">
                                <li class=""><a href="YAHOO.util.CustomEvent.html" title="YAHOO.util.CustomEvent">YAHOO.util.CustomEvent</a></li>
                                <li class=""><a href="YAHOO.util.Event.html" title="YAHOO.util.Event">YAHOO.util.Event</a></li>
                                <li class=""><a href="YAHOO.util.EventProvider.html" title="YAHOO.util.EventProvider">YAHOO.util.EventProvider</a></li>
                                <li class=""><a href="YAHOO.util.KeyListener.html" title="YAHOO.util.KeyListener">YAHOO.util.KeyListener</a></li>
                                <li class=""><a href="YAHOO.util.Subscriber.html" title="YAHOO.util.Subscriber">YAHOO.util.Subscriber</a></li>
                        </ul>
                    </div>

                    <div id="fileList" class="module">
                        <h4>文件</h4>
                        <ul class="content">        
                                <li class=""><a href="event.js.html" title="event.js">event.js</a></li>
                        </ul>
                    </div>





            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2009 Yahoo! Inc. All rights reserved.
	</div>
</div>
<script type="text/javascript">
    ALL_YUI_PROPS = [{"url": "YAHOO.util.Event.html#method_addBlurListener", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "addBlurListener"}, {"url": "YAHOO.util.Event.html#method_addFocusListener", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "addFocusListener"}, {"url": "YAHOO.util.Event.html#method_addListener", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "addListener"}, {"url": "YAHOO.util.Event.html#property_ADJ_SCOPE", "access": "", "host": "YAHOO.util.Event", "type": "property", "name": "ADJ_SCOPE"}, {"url": "YAHOO.util.Subscriber.html#method_contains", "access": "", "host": "YAHOO.util.Subscriber", "type": "method", "name": "contains"}, {"url": "YAHOO.util.EventProvider.html#method_createEvent", "access": "", "host": "YAHOO.util.EventProvider", "type": "method", "name": "createEvent"}, {"url": "YAHOO.util.KeyListener.html#method_disable", "access": "", "host": "YAHOO.util.KeyListener", "type": "method", "name": "disable"}, {"url": "YAHOO.util.KeyListener.html#event_disabledEvent", "access": "", "host": "YAHOO.util.KeyListener", "type": "event", "name": "disabledEvent"}, {"url": "YAHOO.util.Event.html#property_DOMReady", "access": "", "host": "YAHOO.util.Event", "type": "property", "name": "DOMReady"}, {"url": "YAHOO.util.Event.html#event_DOMReadyEvent", "access": "", "host": "YAHOO.util.Event", "type": "event", "name": "DOMReadyEvent"}, {"url": "YAHOO.util.Event.html#property_EL", "access": "", "host": "YAHOO.util.Event", "type": "property", "name": "EL"}, {"url": "YAHOO.util.KeyListener.html#method_enable", "access": "", "host": "YAHOO.util.KeyListener", "type": "method", "name": "enable"}, {"url": "YAHOO.util.KeyListener.html#property_enabled", "access": "", "host": "YAHOO.util.KeyListener", "type": "property", "name": "enabled"}, {"url": "YAHOO.util.KeyListener.html#event_enabledEvent", "access": "", "host": "YAHOO.util.KeyListener", "type": "event", "name": "enabledEvent"}, {"url": "YAHOO.util.CustomEvent.html#method_fire", "access": "", "host": "YAHOO.util.CustomEvent", "type": "method", "name": "fire"}, {"url": "YAHOO.util.EventProvider.html#method_fireEvent", "access": "", "host": "YAHOO.util.EventProvider", "type": "method", "name": "fireEvent"}, {"url": "YAHOO.util.Subscriber.html#property_fn", "access": "", "host": "YAHOO.util.Subscriber", "type": "property", "name": "fn"}, {"url": "YAHOO.util.Event.html#property_FN", "access": "", "host": "YAHOO.util.Event", "type": "property", "name": "FN"}, {"url": "YAHOO.util.Event.html#method_generateId", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "generateId"}, {"url": "YAHOO.util.Event.html#method_getCharCode", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "getCharCode"}, {"url": "YAHOO.util.Event.html#method_getEvent", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "getEvent"}, {"url": "YAHOO.util.Event.html#method_getListeners", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "getListeners"}, {"url": "YAHOO.util.Event.html#method_getPageX", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "getPageX"}, {"url": "YAHOO.util.Event.html#method_getPageY", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "getPageY"}, {"url": "YAHOO.util.Event.html#method_getRelatedTarget", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "getRelatedTarget"}, {"url": "YAHOO.util.Subscriber.html#method_getScope", "access": "", "host": "YAHOO.util.Subscriber", "type": "method", "name": "getScope"}, {"url": "YAHOO.util.Event.html#method_getTarget", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "getTarget"}, {"url": "YAHOO.util.Event.html#method_getTime", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "getTime"}, {"url": "YAHOO.util.Event.html#method_getXY", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "getXY"}, {"url": "YAHOO.util.EventProvider.html#method_hasEvent", "access": "", "host": "YAHOO.util.EventProvider", "type": "method", "name": "hasEvent"}, {"url": "YAHOO.util.KeyListener.html#property_KEY", "access": "", "host": "YAHOO.util.KeyListener", "type": "property", "name": "KEY"}, {"url": "YAHOO.util.CustomEvent.html#property_lastError", "access": "", "host": "YAHOO.util.CustomEvent", "type": "property", "name": "lastError"}, {"url": "YAHOO.util.Event.html#property_lastError", "access": "", "host": "YAHOO.util.Event", "type": "property", "name": "lastError"}, {"url": "YAHOO.util.Subscriber.html#property_obj", "access": "", "host": "YAHOO.util.Subscriber", "type": "property", "name": "obj"}, {"url": "YAHOO.util.Event.html#property_OBJ", "access": "", "host": "YAHOO.util.Event", "type": "property", "name": "OBJ"}, {"url": "YAHOO.util.Event.html#method_on", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "on"}, {"url": "YAHOO.util.Event.html#method_onAvailable", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "onAvailable"}, {"url": "YAHOO.util.Event.html#method_onBlur", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "onBlur"}, {"url": "YAHOO.util.Event.html#method_onContentReady", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "onContentReady"}, {"url": "YAHOO.util.Event.html#method_onDOMReady", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "onDOMReady"}, {"url": "YAHOO.util.Event.html#property_OVERRIDE", "access": "", "host": "YAHOO.util.Event", "type": "property", "name": "OVERRIDE"}, {"url": "YAHOO.util.Subscriber.html#property_overrideContext", "access": "", "host": "YAHOO.util.Subscriber", "type": "property", "name": "overrideContext"}, {"url": "YAHOO.util.Event.html#property_POLL_INTERVAL", "access": "", "host": "YAHOO.util.Event", "type": "property", "name": "POLL_INTERVAL"}, {"url": "YAHOO.util.Event.html#property_POLL_RETRYS", "access": "", "host": "YAHOO.util.Event", "type": "property", "name": "POLL_RETRYS"}, {"url": "YAHOO.util.Event.html#method_preventDefault", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "preventDefault"}, {"url": "YAHOO.util.Event.html#method_purgeElement", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "purgeElement"}, {"url": "YAHOO.util.Event.html#method_removeListener", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "removeListener"}, {"url": "YAHOO.util.Event.html#method_resolveTextNode", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "resolveTextNode"}, {"url": "YAHOO.util.CustomEvent.html#property_scope", "access": "", "host": "YAHOO.util.CustomEvent", "type": "property", "name": "scope"}, {"url": "YAHOO.util.CustomEvent.html#property_signature", "access": "", "host": "YAHOO.util.CustomEvent", "type": "property", "name": "signature"}, {"url": "YAHOO.util.CustomEvent.html#property_silent", "access": "", "host": "YAHOO.util.CustomEvent", "type": "property", "name": "silent"}, {"url": "YAHOO.util.Event.html#method_stopEvent", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "stopEvent"}, {"url": "YAHOO.util.Event.html#method_stopPropagation", "access": "", "host": "YAHOO.util.Event", "type": "method", "name": "stopPropagation"}, {"url": "YAHOO.util.CustomEvent.html#method_subscribe", "access": "", "host": "YAHOO.util.CustomEvent", "type": "method", "name": "subscribe"}, {"url": "YAHOO.util.EventProvider.html#method_subscribe", "access": "", "host": "YAHOO.util.EventProvider", "type": "method", "name": "subscribe"}, {"url": "YAHOO.util.CustomEvent.html#event_subscribeEvent", "access": "", "host": "YAHOO.util.CustomEvent", "type": "event", "name": "subscribeEvent"}, {"url": "YAHOO.util.CustomEvent.html#property_subscribers", "access": "", "host": "YAHOO.util.CustomEvent", "type": "property", "name": "subscribers"}, {"url": "YAHOO.util.Event.html#property_throwErrors", "access": "", "host": "YAHOO.util.Event", "type": "property", "name": "throwErrors"}, {"url": "YAHOO.util.CustomEvent.html#method_toString", "access": "", "host": "YAHOO.util.CustomEvent", "type": "method", "name": "toString"}, {"url": "YAHOO.util.Subscriber.html#method_toString", "access": "", "host": "YAHOO.util.Subscriber", "type": "method", "name": "toString"}, {"url": "YAHOO.util.KeyListener.html#method_toString", "access": "", "host": "YAHOO.util.KeyListener", "type": "method", "name": "toString"}, {"url": "YAHOO.util.CustomEvent.html#property_type", "access": "", "host": "YAHOO.util.CustomEvent", "type": "property", "name": "type"}, {"url": "YAHOO.util.Event.html#property_TYPE", "access": "", "host": "YAHOO.util.Event", "type": "property", "name": "TYPE"}, {"url": "YAHOO.util.CustomEvent.html#method_unsubscribe", "access": "", "host": "YAHOO.util.CustomEvent", "type": "method", "name": "unsubscribe"}, {"url": "YAHOO.util.EventProvider.html#method_unsubscribe", "access": "", "host": "YAHOO.util.EventProvider", "type": "method", "name": "unsubscribe"}, {"url": "YAHOO.util.CustomEvent.html#method_unsubscribeAll", "access": "", "host": "YAHOO.util.CustomEvent", "type": "method", "name": "unsubscribeAll"}, {"url": "YAHOO.util.EventProvider.html#method_unsubscribeAll", "access": "", "host": "YAHOO.util.EventProvider", "type": "method", "name": "unsubscribeAll"}, {"url": "YAHOO.util.Event.html#property_WFN", "access": "", "host": "YAHOO.util.Event", "type": "property", "name": "WFN"}, {"url": "YAHOO.util.CustomEvent.html#property_YAHOO.util.CustomEvent.FLAT", "access": "", "host": "YAHOO.util.CustomEvent", "type": "property", "name": "YAHOO.util.CustomEvent.FLAT"}, {"url": "YAHOO.util.CustomEvent.html#property_YAHOO.util.CustomEvent.LIST", "access": "", "host": "YAHOO.util.CustomEvent", "type": "property", "name": "YAHOO.util.CustomEvent.LIST"}, {"url": "YAHOO.util.KeyListener.html#property_YAHOO.util.KeyListener.KEYDOWN", "access": "", "host": "YAHOO.util.KeyListener", "type": "property", "name": "YAHOO.util.KeyListener.KEYDOWN"}, {"url": "YAHOO.util.KeyListener.html#property_YAHOO.util.KeyListener.KEYUP", "access": "", "host": "YAHOO.util.KeyListener", "type": "property", "name": "YAHOO.util.KeyListener.KEYUP"}];
</script>
</body>
</html>
